/*
 * @Author: liangzhuo liangzhuo@chzu.com
 * @Date: 2022-10-24 23:02:00
 * @LastEditors: liangzhuo liangzhuo@chzu.com
 * @LastEditTime: 2022-10-25 22:53:07
 * @FilePath: \hongxinUi\src\api\exam\paperInfo.js
 * @Description: 考试试卷相关的接口
 */
import request from '@/utils/request'

// 生成试卷信息
export function addExamPapaer(data) {
  return request({
      url: '/examination',
      method: 'post',
      data: data
  })
}

// 获取历史试卷信息
export function getExamPapaer(data) {
  return request({
      url: '/examination/list',
      method: 'get',
      params: data
  })
}

// 试题信息
export function getQuestionInfo(id) {
  return request({
      url: `/examination/paperInfo/${id}`,
      method: 'post'
  })
}

// 生成试卷信息
export function getScoreInfo(paperId) {
  return request({
      url: `/examination/examOfStudent/${paperId}`,
      method: 'post'
  })
}